package org.example.demo9;

/**
 * 公用repository
 *
 * @author Gong.Yang
 */
public class BaseRepository<T extends DataEntity, D> {
    private final String name;
    private final Class<T> tClass;
    private final Class<D> dClass;

    private final OtherComponent otherComponent;


    public BaseRepository(String name, Class<T> tClass, Class<D> dClass, OtherComponent otherComponent) {
        this.name = name;
        this.tClass = tClass;
        this.dClass = dClass;
        this.otherComponent = otherComponent;
    }
}
